home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16119 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.7 KB  |  63 lines

  1. Path: EU.net!sk2eu!news
  2. From: lipocky@crick.fmed.uniba.sk (Martin Lipocky)
  3. Newsgroups: comp.lang.c++
  4. Subject: HELP: ffblk structure
  5. Date: Tue, 9 Apr 1996 16:38:55 GMT
  6. Organization: Gatewayed by EUnet Slovakia, Bratislava, Slovak Republic
  7. Sender: news@sk2eu.eunet.sk (News Administrator)
  8. Message-ID: <DpLsww.4Ev@sk2eu.eunet.sk>
  9. NNTP-Posting-Host: sk2eu.eunet.sk
  10. Mime-Version: 1.0
  11. Content-Type: Text/Plain; charset=US-ASCII
  12. X-Newsreader: WinVN 0.99.7
  13.  
  14. Hi there,
  15.  
  16. I'm a beginner in Borland C++ 3.1. Often I have problems with variables but now 
  17. I've got a big problem. I cannot find out the date and time of a file in REAL format 
  18. from the sub-variables ff_ftime and ff_fdate. These are member of ffblk structure.
  19. I took the ffblk structure description from HELP for you. I hope you'll help me.
  20. As you can see below ff_ftime and ff_fdate are integers it means in the member 
  21. is a simple number. Please send me some steps how to get the time and date in 
  22. real format from an integer.
  23.  
  24. #begin of help
  25.  
  26. ffblk     <DIR.H> 
  27.  
  28. DOS file control block structure. 
  29.  
  30.  
  31. struct ffblk {
  32.   char ff_reserved[21]; /* reserved by DOS */
  33.   char ff_attrib;       /* attribute found */
  34.   int  ff_ftime;        /* file time */
  35.   int  ff_fdate;        /* file date */
  36.   long ff_fsize;        /* file size */
  37.   char ff_name[13];     /* found file name */
  38. }; 
  39.  
  40. Remarks
  41.  
  42. ff_ftime and ff_fdate are 16-bit structures divided into bit fields for referring to the 
  43. current date and time. 
  44.  
  45. The structure of these fields was established by DOS. 
  46.  
  47. #End of help
  48.  
  49. C ya,
  50.  
  51. bye.
  52.  
  53. Martin.
  54.  
  55. Office:
  56.     Martin Lipocky
  57. Email:    lipocky@crick.fmed.uniba.sk
  58. WWW:    http://crick.fmed.uniba.sk:80/~lipocky/
  59. Phone:    ++42(7)214000 ext. 237
  60.     Bratislava, SLOVAKIA
  61.  
  62.  
  63.